package com.icehand.mybatis.payment.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author icehand
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("app_channel")
@Accessors(chain = true)
public class AppChannel extends Model<AppChannel> {
    private Integer appId;
    private Integer channelId;
    private String config;
    private Short status;
    private Date createTime;
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.appId+""+this.channelId;
    }
}

